package com.gitee.hermer.engine.jars.core.xauth.config;

import org.apache.commons.lang.BooleanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import com.gitee.hermer.boot.jee.commons.number.IntegerUtils;
import com.gitee.hermer.boot.jee.commons.number.NumberUtils;
import com.gitee.hermer.engine.jars.core.domain.EngineConstant;
import com.gitee.hermer.engine.jars.dependent.dsm.domain.EngineProperties;

@PropertySource(EngineConstant.ENGINE_CONFIG_PROPERTIES_CLASS_PATH)
@Component
public class XAuthProperties extends EngineProperties{

	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XAUTH_SKIP_AUTHENTICATE)
	private Boolean skipAuthenticate;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XAUTH_BIZ_URL_PREFIX)
	private String bizSiteUrlPrefix;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XAUTH_CAS_URL_PREFIX)
	private String casServerUrlPrefix;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XAUTH_SUCCESS)
	private String successUrl;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XAUTH_UNAUTHORIZED)
	private String unauthorizedUrl;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XAUTH_LOGOUT_REDIRECT)
	private String logoutRedirectUrl;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XAUTH_APPKEY)
	private String appKey;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_XAUTH_WHITE_LIST)
	private String whiteList;
	

	public Boolean getSkipAuthenticate() {
		return skipAuthenticate;
	}

	public void setSkipAuthenticate(Boolean skipAuthenticate) {
		this.skipAuthenticate = skipAuthenticate;
	}

	public String getBizSiteUrlPrefix() {
		return bizSiteUrlPrefix;
	}

	public void setBizSiteUrlPrefix(String bizSiteUrlPrefix) {
		this.bizSiteUrlPrefix = bizSiteUrlPrefix;
	}

	public String getCasServerUrlPrefix() {
		return casServerUrlPrefix;
	}

	public void setCasServerUrlPrefix(String casServerUrlPrefix) {
		this.casServerUrlPrefix = casServerUrlPrefix;
	}

	public String getSuccessUrl() {
		return successUrl;
	}

	public void setSuccessUrl(String successUrl) {
		this.successUrl = successUrl;
	}

	public String getUnauthorizedUrl() {
		return unauthorizedUrl;
	}

	public void setUnauthorizedUrl(String unauthorizedUrl) {
		this.unauthorizedUrl = unauthorizedUrl;
	}

	public String getLogoutRedirectUrl() {
		return logoutRedirectUrl;
	}

	public void setLogoutRedirectUrl(String logoutRedirectUrl) {
		this.logoutRedirectUrl = logoutRedirectUrl;
	}

	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	public String getWhiteList() {
		return whiteList;
	}

	public void setWhiteList(String whiteList) {
		this.whiteList = whiteList;
	}

}
